import os
import pandas as pd


to_csv_name = 'ultimate.csv'
to_csv_path = os.path.join(os.path.abspath(
    os.path.join(os.path.join(os.path.dirname(__file__), ".."), 'static/spider/data')),
    to_csv_name)
old_pd = pd.read_csv(to_csv_path, encoding='gbk')
pd_datas = pd.read_csv(to_csv_path, encoding='gbk').to_dict(orient='record')

for index in range(len(pd_datas)):
    data = pd_datas[index]
    print(index, data['地址'])